<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      // let this=window;
      console.log(this);

      function say() {
        // let this=window;
        console.log(this);
      }
      say();

      const obj = {
        add() {
          // obj.add();let this=obj
          console.log(this);
        },
      };

      obj.add(); //obj
    </script>
  </body>
</html>
